
package org.codebase.java.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 实现远程的接口
 **************************************************
 * ClassName:HelloImpl

 * @author:xiaozhichao
 * @date:2018年8月20日
 **************************************************
 */
public class HelloImpl extends UnicastRemoteObject implements IHello {

	private static final long serialVersionUID = -1987133680005164731L;

	protected HelloImpl() throws RemoteException {
		super();
	}

	@Override
	public String sayHello(String name) throws Exception {
		return "Hello " + name + " ^_^ ";

	}

}
